import Http from '@/utils/Http';
import { Uri } from '../constant/Constants';
import QiniuTokenResponse from '@/protocol/response/QiniuTokenResponse';
import UniUtil from '@/utils/UniUtil';
import LoggerUtil from '@/utils/LoggerUtil';

export default class QiniuService{
     public  static async upload(path:string,key:string,success?:Function){
         let res = await Http.request(Uri.qiniu_access_token, null, new QiniuTokenResponse())
         UniUtil.upload(path, key, res.getToken(), success);
    }
}